package com.ciaojian.core.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.ciaojian.core.enums.business.MaterialApplyRecordLogisticsEnum;
import com.ciaojian.core.enums.business.MaterialApplyRecordStatusEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 物资申请记录
 * </p>
 *
 * @author Atlakyn
 * @since 2021-07-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("d_material_apply_record")
public class MaterialApplyRecord extends Model<MaterialApplyRecord> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("门店ID")
    private Integer storeId;

    @ApiModelProperty("申请人")
    private Integer workerId;

    @ApiModelProperty("审核状态")
    private MaterialApplyRecordStatusEnum status;

    @ApiModelProperty("收货状态")
    private MaterialApplyRecordLogisticsEnum logistics;

    @ApiModelProperty("备注")
    private String remark;

    private Date addTime;

    private Date updateTime;

    @ApiModelProperty(value = "逻辑删除", hidden = true)
    private Boolean logicDel;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
